//
//  NYUserFormUserRegisterCell.m
//  NiuWaJiaoYu
//
//  Created by MinLison on 2017/12/19.
//  Copyright © 2017年 niuwaketang. All rights reserved.
//

#import "NYUserFormUserRegisterCell.h"
@interface NYUserFormUserRegisterCell ()
@property(nonatomic, strong) QMUIGhostButton *loginButton;
@end
@implementation NYUserFormUserRegisterCell


+ (CGFloat)heightForField:(FXFormField *)field width:(CGFloat)width
{
        return __WGHeight(50);
}
- (void)didSelectWithTableView:(UITableView *)tableView controller:(UIViewController *)controller
{
        // do nothing
}
- (void)setUp
{
        [super setUp];
        
}
- (void)update
{
        self.button.backgroundColor = [UIColor clearColor];
        
        NSDictionary *norAttr = @{
                                  NSForegroundColorAttributeName : UIColorHex(0x999999),
                                  NSFontAttributeName : WGSystem14Font,
                                  NSUnderlineColorAttributeName : UIColorHex(0x999999),
                                  NSUnderlineStyleAttributeName : @(NSUnderlineStyleSingle)
                                  };
        
        NSMutableAttributedString *attrString = [[NSMutableAttributedString alloc] initWithString:NOT_NULL_STRING_DEFAULT_EMPTY(self.field.title) attributes:norAttr];
        [self.button setAttributedTitle:attrString forState:(UIControlStateNormal)];
        [super update];
}
@end
